package rg.edu.ap.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import rg.edu.ap.dao.UserDao;
import rg.edu.ap.po.User;
import rg.edu.ap.service.UserService;



@Service("userService")
@Transactional
public class UserServiceImpl implements UserService{
	@Autowired
	private UserDao userdao;
	
	public User ff(int userid) {
		return userdao.ff(userid);
	}
	
	public int addUser(User user) {
		return userdao.addUser(user);
	}
	
	public User loginUser(User user) {
		return userdao.loginUser(user);
	}
	
	public int updateUsermap(User user) {
		return userdao.updateUsermap(user);
	}
	
	public User findUser(int userid) {
		return userdao.findUser(userid);
	}
	
	public int updateUser(User user) {
		return userdao.updateUser(user);
	}
}
